import request from "@/utils/request"; //导入封装请求的js文件
//获取列表
export function selectAllByParams(params) {
  return request({
    url: "/pmsProduct/selectAllByParams",
    method: "get",
    params: params,
  });
}
//删除
export function pmsProduct(params) {
  return request({
    url: "/pmsProduct/deleteProduct",
    method: "DELETE",
    params: params,
  });
}
//商品上架下架
export function updateProductMarket(params) {
  return request({
    url: "/pmsProduct/updateProductMarket",
    method: "PUT",
    params: params,
  });
}
//商品排序
export function updateProductOrder(params) {
  return request({
    url: "/pmsProduct/updateProductOrder",
    method: "PUT",
    params: params,
  });
}
//报名
export function saveSpecialProduct(params) {
  return request({
    url: "/pmsProductSpecialSale/saveSpecialProduct",
    method: "POST",
    data: params,
  });
}
//查询清仓报名
export function selectProductByParams(params) {
  return request({
    url: "/pmsProductSpecialSale/selectProductByParams",
    method: "get",
    params: params,
  });
}
//退出清仓
export function deleteSpecialProduct(params) {
  return request({
    url: "/pmsProductSpecialSale/deleteSpecialProduct",
    method: "DELETE",
    params: params,
  });
}
//获取直播选品前台商品
export function selectLiveProduct(params) {
  return request({
    url: "/pmsProductSpecialSale/selectLiveProduct",
    method: "GET",
    params: params,
  });
}
//筛选营业店铺
export function selectAllStoreByParams(params) {
  return request({
    url: "/pmsStore/selectAllStoreByParams",
    method: "GET",
    params: params,
  });
}